]> dgit.raspbian.org Git - gnome-shell.git/commit
status/keyboard: Synchronize input source switching with key events
authorRui Matos <tiagomatos@gmail.com>
Wed, 27 Mar 2013 00:01:33 +0000 (01:01 +0100)
committerRui Matos <tiagomatos@gmail.com>
Mon, 27 May 2013 12:05:50 +0000 (14:05 +0200)
commit944c28f3b34192ec2faacf245249d03f20c6eead
tree891c9098deaee7f6164a424977368911a0c7dcb2
parentc13a597fe09448b6e6f9fa681c8c1a04376ae07e
status/keyboard: Synchronize input source switching with key events

Currently we simply set the gsettings key when activating an input
source. This obviously introduces a time window, between the event that
activates the switch and when the switch is complete, under which key
events are being delivered to applications and interpreted according
to the previous input source.

The patches in bug 696996 introduce a DBus API in g-s-d that allows us
to know when an input source if effectively active. Using that and
freezing keyboard events in the X server until we hear back from g-s-d
we can ensure that events won't be misinterpreted after an input
source switch.

https://bugzilla.gnome.org/show_bug.cgi?id=697007
js/ui/status/keyboard.js
src/shell-global.c
src/shell-global.h